// Copyright (C) 1953-2022 NUDT
// Verilog module name - mbus_parse_and_encapsulate_osc 
// Version: V4.1.0.20221206
// Created:
// Created:
//         by - fenglin 
////////////////////////////////////////////////////////////////////////////
// Description:
//         
///////////////////////////////////////////////////////////////////////////

`timescale 1ns / 1ps

module mbus_parse_and_encapsulate_osc
#(
  parameter osc_ver   = 8'h41,
  parameter osm_ver   = 8'h41
)
(
        i_clk                            ,    
        i_rst_n                          ,
					 
        i_wr                             ,
        iv_wdata                         ,
        iv_addr                          ,
        i_rd                             ,
        o_wr                             ,
        ov_rdata                         ,
        ov_raddr                         ,
		
        iv_sync_clk                      ,		
        ov_os_cid                        ,
        o_gm_role                        ,
        o_sync_step_mode                 ,
        ov_sync_period                   ,
        ov_offset_threshold              ,
        iv_sync_state                    ,
        ov_frequency_cor                 ,
        o_frequency_cor_wr               ,
        o_state_report_enabled           ,
        ov_port_ptp_enabled	             ,
        ov_measure_period                ,
        ov_measure_responder_wait_time   ,
        ov_master_port                   ,
        ov_cumulativescaledrateoffset    ,
		
		iv_measure_req_cnt_p0            ,
		iv_measure_resp_cnt_p0           ,
		iv_measure_req_cnt_p1            ,
		iv_measure_resp_cnt_p1           ,
		iv_measure_req_cnt_p2            ,
		iv_measure_resp_cnt_p2           ,
		iv_measure_req_cnt_p3            ,
		iv_measure_resp_cnt_p3           ,
		iv_measure_req_cnt_p4            ,
		iv_measure_resp_cnt_p4           ,
		iv_measure_req_cnt_p5            ,
		iv_measure_resp_cnt_p5           ,
		iv_measure_req_cnt_p6            ,
		iv_measure_resp_cnt_p6           ,
		iv_measure_req_cnt_p7            ,
		iv_measure_resp_cnt_p7           ,
		iv_measure_req_cnt_p8            ,
		iv_measure_resp_cnt_p8           ,
		iv_measure_req_cnt_p9            ,
		iv_measure_resp_cnt_p9           ,
		iv_measure_req_cnt_p10           ,
		iv_measure_resp_cnt_p10          ,
		iv_measure_req_cnt_p11           ,
		iv_measure_resp_cnt_p11          ,
		iv_measure_req_cnt_p12           ,
		iv_measure_resp_cnt_p12          ,
		iv_measure_req_cnt_p13           ,
		iv_measure_resp_cnt_p13          ,
		iv_measure_req_cnt_p14           ,
		iv_measure_resp_cnt_p14          ,
		iv_measure_req_cnt_p15           ,
		iv_measure_resp_cnt_p15          ,
		iv_measure_req_cnt_p16           ,
		iv_measure_resp_cnt_p16          ,
		iv_measure_req_cnt_p17           ,
		iv_measure_resp_cnt_p17          ,
		iv_measure_req_cnt_p18           ,
		iv_measure_resp_cnt_p18          ,
		iv_measure_req_cnt_p19           ,
		iv_measure_resp_cnt_p19          ,
		iv_measure_req_cnt_p20           ,
		iv_measure_resp_cnt_p20          ,
		iv_measure_req_cnt_p21           ,
		iv_measure_resp_cnt_p21          ,
		iv_measure_req_cnt_p22           ,
		iv_measure_resp_cnt_p22          ,
		iv_measure_req_cnt_p23           ,
		iv_measure_resp_cnt_p23          ,
		iv_measure_req_cnt_p24           ,
		iv_measure_resp_cnt_p24          ,
		iv_measure_req_cnt_p25           ,
		iv_measure_resp_cnt_p25          ,
		iv_measure_req_cnt_p26           ,
		iv_measure_resp_cnt_p26          ,
		iv_measure_req_cnt_p27           ,
		iv_measure_resp_cnt_p27          ,
		iv_measure_req_cnt_p28           ,
		iv_measure_resp_cnt_p28          ,
		iv_measure_req_cnt_p29           ,
		iv_measure_resp_cnt_p29          ,
		iv_measure_req_cnt_p30           ,
		iv_measure_resp_cnt_p30          ,
		iv_measure_req_cnt_p31           ,
		iv_measure_resp_cnt_p31          ,

        iv_p0_t1,
        iv_p0_t2,
        iv_p0_t3,
        iv_p0_t4,
        iv_p1_t1,
        iv_p1_t2,
        iv_p1_t3,
        iv_p1_t4,
        iv_p2_t1,
        iv_p2_t2,
        iv_p2_t3,
        iv_p2_t4,
        iv_p3_t1,
        iv_p3_t2,
        iv_p3_t3,
        iv_p3_t4,
        iv_p4_t1,
        iv_p4_t2,
        iv_p4_t3,
        iv_p4_t4,
        iv_p5_t1,
        iv_p5_t2,
        iv_p5_t3,
        iv_p5_t4,
        iv_p6_t1,
        iv_p6_t2,
        iv_p6_t3,
        iv_p6_t4,
        iv_p7_t1,
        iv_p7_t2,
        iv_p7_t3,
        iv_p7_t4,
        iv_p8_t1,
        iv_p8_t2,
        iv_p8_t3,
        iv_p8_t4,
        iv_p9_t1,
        iv_p9_t2,
        iv_p9_t3,
        iv_p9_t4,
        iv_p10_t1,
        iv_p10_t2,
        iv_p10_t3,
        iv_p10_t4,
        iv_p11_t1,
        iv_p11_t2,
        iv_p11_t3,
        iv_p11_t4,
        iv_p12_t1,
        iv_p12_t2,
        iv_p12_t3,
        iv_p12_t4,
        iv_p13_t1,
        iv_p13_t2,
        iv_p13_t3,
        iv_p13_t4,
        iv_p14_t1,
        iv_p14_t2,
        iv_p14_t3,
        iv_p14_t4,
        iv_p15_t1,
        iv_p15_t2,
        iv_p15_t3,
        iv_p15_t4,
        iv_p16_t1,
        iv_p16_t2,
        iv_p16_t3,
        iv_p16_t4,
        iv_p17_t1,
        iv_p17_t2,
        iv_p17_t3,
        iv_p17_t4,
        iv_p18_t1,
        iv_p18_t2,
        iv_p18_t3,
        iv_p18_t4,
        iv_p19_t1,
        iv_p19_t2,
        iv_p19_t3,
        iv_p19_t4,
        iv_p20_t1,
        iv_p20_t2,
        iv_p20_t3,
        iv_p20_t4,
        iv_p21_t1,
        iv_p21_t2,
        iv_p21_t3,
        iv_p21_t4,
        iv_p22_t1,
        iv_p22_t2,
        iv_p22_t3,
        iv_p22_t4,
        iv_p23_t1,
        iv_p23_t2,
        iv_p23_t3,
        iv_p23_t4,
        iv_p24_t1,
        iv_p24_t2,
        iv_p24_t3,
        iv_p24_t4,
        iv_p25_t1,
        iv_p25_t2,
        iv_p25_t3,
        iv_p25_t4,
        iv_p26_t1,
        iv_p26_t2,
        iv_p26_t3,
        iv_p26_t4,
        iv_p27_t1,
        iv_p27_t2,
        iv_p27_t3,
        iv_p27_t4,
        iv_p28_t1,
        iv_p28_t2,
        iv_p28_t3,
        iv_p28_t4,
        iv_p29_t1,
        iv_p29_t2,
        iv_p29_t3,
        iv_p29_t4,
        iv_p30_t1,
        iv_p30_t2,
        iv_p30_t3,
        iv_p30_t4,
        iv_p31_t1,
        iv_p31_t2,
        iv_p31_t3,
        iv_p31_t4,

   
        i_sync_ok,
        iv_offset_abnormal_cnt,
        iv_offset,
        i_sync_state_wr,
        iv_gm_timestamps,
        iv_correctfield_time,
        iv_mac_time,
        iv_tsc_time,
        iv_sync_link_delay,
        iv_corrent_sync_clk,
        iv_clk_set_time,
        iv_cyclestart_sequenceid,
        iv_tick_length,
        iv_csrateoffset_previousnode
);
// I/O
// i_clk & rst
input                  i_clk                         ;
input                  i_rst_n                       ;

input                  i_wr                          ;
input      [31:0]      iv_wdata                      ;
input      [18:0]      iv_addr                       ;       
input                  i_rd                          ;
output reg             o_wr                          ; 
output reg [31:0]      ov_rdata                      ;  
output reg [18:0]      ov_raddr                      ;

input      [79:0]      iv_sync_clk                   ;
output reg [11:0]      ov_os_cid                     ;
output reg             o_gm_role                     ; 
output reg             o_sync_step_mode              ;
output reg [3:0]       ov_sync_period                ;
output reg [11:0]      ov_offset_threshold           ;
input      [16:0]      iv_sync_state                 ;
output reg [48:0]      ov_frequency_cor              ;
output reg             o_frequency_cor_wr            ;
output reg             o_state_report_enabled        ;
output reg [31:0]      ov_port_ptp_enabled	         ;
output reg [3:0]       ov_measure_period             ;
output reg [2:0]       ov_measure_responder_wait_time;
output reg [31:0]      ov_master_port                ;
output reg [31:0]      ov_cumulativescaledrateoffset ;
input      [15:0]      iv_measure_req_cnt_p0         ;
input      [15:0]      iv_measure_resp_cnt_p0        ;
input      [15:0]      iv_measure_req_cnt_p1         ;
input      [15:0]      iv_measure_resp_cnt_p1        ;
input      [15:0]      iv_measure_req_cnt_p2         ;
input      [15:0]      iv_measure_resp_cnt_p2        ;
input      [15:0]      iv_measure_req_cnt_p3         ;
input      [15:0]      iv_measure_resp_cnt_p3        ;
input      [15:0]      iv_measure_req_cnt_p4         ;
input      [15:0]      iv_measure_resp_cnt_p4        ;
input      [15:0]      iv_measure_req_cnt_p5         ;
input      [15:0]      iv_measure_resp_cnt_p5        ;
input      [15:0]      iv_measure_req_cnt_p6         ;
input      [15:0]      iv_measure_resp_cnt_p6        ;
input      [15:0]      iv_measure_req_cnt_p7         ;
input      [15:0]      iv_measure_resp_cnt_p7        ;
input      [15:0]      iv_measure_req_cnt_p8         ;
input      [15:0]      iv_measure_resp_cnt_p8        ;
input      [15:0]      iv_measure_req_cnt_p9         ;
input      [15:0]      iv_measure_resp_cnt_p9        ;
input      [15:0]      iv_measure_req_cnt_p10         ;
input      [15:0]      iv_measure_resp_cnt_p10        ;
input      [15:0]      iv_measure_req_cnt_p11         ;
input      [15:0]      iv_measure_resp_cnt_p11        ;
input      [15:0]      iv_measure_req_cnt_p12         ;
input      [15:0]      iv_measure_resp_cnt_p12        ;
input      [15:0]      iv_measure_req_cnt_p13         ;
input      [15:0]      iv_measure_resp_cnt_p13        ;
input      [15:0]      iv_measure_req_cnt_p14         ;
input      [15:0]      iv_measure_resp_cnt_p14        ;
input      [15:0]      iv_measure_req_cnt_p15         ;
input      [15:0]      iv_measure_resp_cnt_p15        ;
input      [15:0]      iv_measure_req_cnt_p16         ;
input      [15:0]      iv_measure_resp_cnt_p16        ;
input      [15:0]      iv_measure_req_cnt_p17         ;
input      [15:0]      iv_measure_resp_cnt_p17        ;
input      [15:0]      iv_measure_req_cnt_p18         ;
input      [15:0]      iv_measure_resp_cnt_p18        ;
input      [15:0]      iv_measure_req_cnt_p19         ;
input      [15:0]      iv_measure_resp_cnt_p19        ;
input      [15:0]      iv_measure_req_cnt_p20         ;
input      [15:0]      iv_measure_resp_cnt_p20        ;
input      [15:0]      iv_measure_req_cnt_p21         ;
input      [15:0]      iv_measure_resp_cnt_p21        ;
input      [15:0]      iv_measure_req_cnt_p22         ;
input      [15:0]      iv_measure_resp_cnt_p22        ;
input      [15:0]      iv_measure_req_cnt_p23         ;
input      [15:0]      iv_measure_resp_cnt_p23        ;
input      [15:0]      iv_measure_req_cnt_p24         ;
input      [15:0]      iv_measure_resp_cnt_p24        ;
input      [15:0]      iv_measure_req_cnt_p25         ;
input      [15:0]      iv_measure_resp_cnt_p25        ;
input      [15:0]      iv_measure_req_cnt_p26         ;
input      [15:0]      iv_measure_resp_cnt_p26        ;
input      [15:0]      iv_measure_req_cnt_p27         ;
input      [15:0]      iv_measure_resp_cnt_p27        ;
input      [15:0]      iv_measure_req_cnt_p28         ;
input      [15:0]      iv_measure_resp_cnt_p28        ;
input      [15:0]      iv_measure_req_cnt_p29         ;
input      [15:0]      iv_measure_resp_cnt_p29        ;
input      [15:0]      iv_measure_req_cnt_p30         ;
input      [15:0]      iv_measure_resp_cnt_p30        ;
input      [15:0]      iv_measure_req_cnt_p31         ;
input      [15:0]      iv_measure_resp_cnt_p31        ;

input      [79:0]      iv_p0_t1;
input      [79:0]      iv_p0_t2;
input      [79:0]      iv_p0_t3;
input      [79:0]      iv_p0_t4;
input      [79:0]      iv_p1_t1;
input      [79:0]      iv_p1_t2;
input      [79:0]      iv_p1_t3;
input      [79:0]      iv_p1_t4;
input      [79:0]      iv_p2_t1;
input      [79:0]      iv_p2_t2;
input      [79:0]      iv_p2_t3;
input      [79:0]      iv_p2_t4;
input      [79:0]      iv_p3_t1;
input      [79:0]      iv_p3_t2;
input      [79:0]      iv_p3_t3;
input      [79:0]      iv_p3_t4;
input      [79:0]      iv_p4_t1;
input      [79:0]      iv_p4_t2;
input      [79:0]      iv_p4_t3;
input      [79:0]      iv_p4_t4;
input      [79:0]      iv_p5_t1;
input      [79:0]      iv_p5_t2;
input      [79:0]      iv_p5_t3;
input      [79:0]      iv_p5_t4;
input      [79:0]      iv_p6_t1;
input      [79:0]      iv_p6_t2;
input      [79:0]      iv_p6_t3;
input      [79:0]      iv_p6_t4;
input      [79:0]      iv_p7_t1;
input      [79:0]      iv_p7_t2;
input      [79:0]      iv_p7_t3;
input      [79:0]      iv_p7_t4;
input      [79:0]      iv_p8_t1;
input      [79:0]      iv_p8_t2;
input      [79:0]      iv_p8_t3;
input      [79:0]      iv_p8_t4;
input      [79:0]      iv_p9_t1;
input      [79:0]      iv_p9_t2;
input      [79:0]      iv_p9_t3;
input      [79:0]      iv_p9_t4;
input      [79:0]      iv_p10_t1;
input      [79:0]      iv_p10_t2;
input      [79:0]      iv_p10_t3;
input      [79:0]      iv_p10_t4;
input      [79:0]      iv_p11_t1;
input      [79:0]      iv_p11_t2;
input      [79:0]      iv_p11_t3;
input      [79:0]      iv_p11_t4;
input      [79:0]      iv_p12_t1;
input      [79:0]      iv_p12_t2;
input      [79:0]      iv_p12_t3;
input      [79:0]      iv_p12_t4;
input      [79:0]      iv_p13_t1;
input      [79:0]      iv_p13_t2;
input      [79:0]      iv_p13_t3;
input      [79:0]      iv_p13_t4;
input      [79:0]      iv_p14_t1;
input      [79:0]      iv_p14_t2;
input      [79:0]      iv_p14_t3;
input      [79:0]      iv_p14_t4;
input      [79:0]      iv_p15_t1;
input      [79:0]      iv_p15_t2;
input      [79:0]      iv_p15_t3;
input      [79:0]      iv_p15_t4;
input      [79:0]      iv_p16_t1;
input      [79:0]      iv_p16_t2;
input      [79:0]      iv_p16_t3;
input      [79:0]      iv_p16_t4;
input      [79:0]      iv_p17_t1;
input      [79:0]      iv_p17_t2;
input      [79:0]      iv_p17_t3;
input      [79:0]      iv_p17_t4;
input      [79:0]      iv_p18_t1;
input      [79:0]      iv_p18_t2;
input      [79:0]      iv_p18_t3;
input      [79:0]      iv_p18_t4;
input      [79:0]      iv_p19_t1;
input      [79:0]      iv_p19_t2;
input      [79:0]      iv_p19_t3;
input      [79:0]      iv_p19_t4;
input      [79:0]      iv_p20_t1;
input      [79:0]      iv_p20_t2;
input      [79:0]      iv_p20_t3;
input      [79:0]      iv_p20_t4;
input      [79:0]      iv_p21_t1;
input      [79:0]      iv_p21_t2;
input      [79:0]      iv_p21_t3;
input      [79:0]      iv_p21_t4;
input      [79:0]      iv_p22_t1;
input      [79:0]      iv_p22_t2;
input      [79:0]      iv_p22_t3;
input      [79:0]      iv_p22_t4;
input      [79:0]      iv_p23_t1;
input      [79:0]      iv_p23_t2;
input      [79:0]      iv_p23_t3;
input      [79:0]      iv_p23_t4;
input      [79:0]      iv_p24_t1;
input      [79:0]      iv_p24_t2;
input      [79:0]      iv_p24_t3;
input      [79:0]      iv_p24_t4;
input      [79:0]      iv_p25_t1;
input      [79:0]      iv_p25_t2;
input      [79:0]      iv_p25_t3;
input      [79:0]      iv_p25_t4;
input      [79:0]      iv_p26_t1;
input      [79:0]      iv_p26_t2;
input      [79:0]      iv_p26_t3;
input      [79:0]      iv_p26_t4;
input      [79:0]      iv_p27_t1;
input      [79:0]      iv_p27_t2;
input      [79:0]      iv_p27_t3;
input      [79:0]      iv_p27_t4;
input      [79:0]      iv_p28_t1;
input      [79:0]      iv_p28_t2;
input      [79:0]      iv_p28_t3;
input      [79:0]      iv_p28_t4;
input      [79:0]      iv_p29_t1;
input      [79:0]      iv_p29_t2;
input      [79:0]      iv_p29_t3;
input      [79:0]      iv_p29_t4;
input      [79:0]      iv_p30_t1;
input      [79:0]      iv_p30_t2;
input      [79:0]      iv_p30_t3;
input      [79:0]      iv_p30_t4;
input      [79:0]      iv_p31_t1;
input      [79:0]      iv_p31_t2;
input      [79:0]      iv_p31_t3;
input      [79:0]      iv_p31_t4;

input                  i_sync_ok;
input      [15:0]      iv_offset_abnormal_cnt;
input      [12:0]      iv_offset;
input                  i_sync_state_wr;
input      [79:0]      iv_gm_timestamps;
input      [63:0]      iv_correctfield_time;
input      [79:0]      iv_mac_time;
input      [79:0]      iv_tsc_time;
input      [11:0]      iv_sync_link_delay;
input      [79:0]      iv_corrent_sync_clk;
input      [79:0]      iv_clk_set_time;
input      [31:0]      iv_cyclestart_sequenceid;
input      [63:0]      iv_tick_length;
input      [31:0]      iv_csrateoffset_previousnode;
//***************************************************
//               command parse
//***************************************************
reg        [79:0]      rv_sync_clk;
always @(posedge i_clk or negedge i_rst_n) begin
    if(i_rst_n == 1'b0)begin       
        o_wr              <= 1'b0 ;
        ov_rdata          <= 32'b0;
        ov_raddr          <= 19'b0;
        
		rv_sync_clk                    <= 80'b0;
        ov_os_cid                      <= 12'b0;
        o_gm_role                      <= 1'b0;
        o_sync_step_mode               <= 1'b0;//two_step
        ov_sync_period                 <= 4'd7;//2^7ms.
        ov_offset_threshold            <= 12'd200 ;  //200ns.  
        ov_frequency_cor               <= {8'h8,41'h0};      
        o_frequency_cor_wr             <= 1'b0 ; 
        o_state_report_enabled         <= 1'b0;
        ov_port_ptp_enabled	           <= 32'b0;
        ov_measure_period              <= 4'd10;//2^10ms.
        ov_measure_responder_wait_time <= 3'd4;//2^4ms.
        ov_master_port                 <= 32'b0;
        ov_cumulativescaledrateoffset  <= 32'b0;		
    end
    else begin
        if(i_wr)begin
            o_wr          <= 1'b0;
            ov_rdata      <= 32'b0;
            ov_raddr      <= 19'b0;		
            if(iv_addr == 19'd1)begin
                ov_os_cid          <= iv_wdata[11:0];
                o_frequency_cor_wr <= 1'b0; 				
            end
            else if(iv_addr == 19'd2)begin
                o_gm_role          <= iv_wdata[0];
				o_frequency_cor_wr <= 1'b0; 
            end
            else if(iv_addr == 19'd3)begin
                ov_sync_period     <= iv_wdata[3:0]; 
                o_frequency_cor_wr <= 1'b0; 				
            end
            else if(iv_addr == 19'd4)begin
                ov_offset_threshold   <= iv_wdata[11:0]; 
                o_frequency_cor_wr    <= 1'b0; 				
            end
            //else if(iv_addr == 19'd5)begin//    iv_sync_state 
            //			
            //end
            else if(iv_addr == 19'd6)begin
                ov_frequency_cor[48:32] <= iv_wdata[16:0];      
                o_frequency_cor_wr      <= 1'b0;                
            end
            else if(iv_addr == 19'd7)begin
                ov_frequency_cor[31:0]  <= iv_wdata[31:0];      
                o_frequency_cor_wr      <= 1'b1;          
            end  
            else if(iv_addr == 19'd8)begin
                o_state_report_enabled <= iv_wdata[0];
                o_frequency_cor_wr     <= 1'b0;                 
            end  
            else if(iv_addr == 19'd9)begin
                ov_port_ptp_enabled     <= iv_wdata;
                o_frequency_cor_wr      <= 1'b0; 				
            end
            else if(iv_addr == 19'd10)begin
                ov_measure_period       <= iv_wdata[3:0];
                o_frequency_cor_wr      <= 1'b0; 				
            end  
            else if(iv_addr == 19'd11)begin
                ov_measure_responder_wait_time <= iv_wdata[2:0]; 
                o_frequency_cor_wr <= 1'b0; 				
            end
            else if(iv_addr == 19'd12)begin
                ov_master_port          <= iv_wdata[31:0]; 
                o_frequency_cor_wr      <= 1'b0; 				
            end
            else if(iv_addr == 19'd13)begin
                ov_cumulativescaledrateoffset <= iv_wdata[31:0];
                o_frequency_cor_wr            <= 1'b0; 				
            end
            else if(iv_addr == 19'd81)begin
                o_sync_step_mode              <= iv_wdata[0]; 	            
                o_frequency_cor_wr            <= 1'b0; 			
            end              
            else begin
                o_frequency_cor_wr            <= 1'b0; 
            end
        end      
        else if(i_rd)begin
            o_frequency_cor_wr              <= 1'b0; 
			if(iv_addr == 19'd0)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,osc_ver,osm_ver} ;
                ov_raddr      <= iv_addr;        
            end
            else if(iv_addr == 19'd1)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {20'b0,ov_os_cid};
                ov_raddr      <= iv_addr;        
            end
            else if(iv_addr == 19'd2)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {31'b0,o_gm_role};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd3)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {28'b0,ov_sync_period};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd4)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {20'b0,ov_offset_threshold};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd5)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {15'b0,iv_sync_state};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd6)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {15'b0,ov_frequency_cor[48:32]};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd7)begin
                o_wr          <= 1'b1;
                ov_rdata      <= ov_frequency_cor[31:0];
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd8)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {31'b0,o_state_report_enabled};
                ov_raddr      <= iv_addr;
            end     
            else if(iv_addr == 19'd9)begin
                o_wr          <= 1'b1;
                ov_rdata      <= ov_port_ptp_enabled;
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd10)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {28'b0,ov_measure_period};
                ov_raddr      <= iv_addr;
            end     
            else if(iv_addr == 19'd11)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {29'b0,ov_measure_responder_wait_time};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd12)begin
                o_wr          <= 1'b1;
                ov_rdata      <= ov_master_port;
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd13)begin
                o_wr          <= 1'b1;
                ov_rdata      <= ov_cumulativescaledrateoffset;
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd14)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_sync_clk[79:64]};
                ov_raddr      <= iv_addr;
				
				rv_sync_clk   <= iv_sync_clk;
            end
            else if(iv_addr == 19'd15)begin
                o_wr          <= 1'b1;
                ov_rdata      <= rv_sync_clk[63:32];
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd16)begin
                o_wr          <= 1'b1;
                ov_rdata      <= rv_sync_clk[31:0];
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd17)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p0,iv_measure_req_cnt_p0};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd18)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p1,iv_measure_req_cnt_p1};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd19)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p2,iv_measure_req_cnt_p2};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd20)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p3,iv_measure_req_cnt_p3};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd21)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p4,iv_measure_req_cnt_p4};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd22)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p5,iv_measure_req_cnt_p5};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd23)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p6,iv_measure_req_cnt_p6};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd24)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p7,iv_measure_req_cnt_p7};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd25)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p8,iv_measure_req_cnt_p8};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd26)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p9,iv_measure_req_cnt_p9};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd27)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p10,iv_measure_req_cnt_p10};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd28)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p11,iv_measure_req_cnt_p11};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd29)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p12,iv_measure_req_cnt_p12};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd30)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p13,iv_measure_req_cnt_p13};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd31)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p14,iv_measure_req_cnt_p14};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd32)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p15,iv_measure_req_cnt_p15};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd33)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p16,iv_measure_req_cnt_p16};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd34)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p17,iv_measure_req_cnt_p17};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd35)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p18,iv_measure_req_cnt_p18};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd36)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p19,iv_measure_req_cnt_p19};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd37)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p20,iv_measure_req_cnt_p20};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd38)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p21,iv_measure_req_cnt_p21};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd39)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p22,iv_measure_req_cnt_p22};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd40)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p23,iv_measure_req_cnt_p23};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd41)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p24,iv_measure_req_cnt_p24};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd42)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p25,iv_measure_req_cnt_p25};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd43)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p26,iv_measure_req_cnt_p26};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd44)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p27,iv_measure_req_cnt_p27};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd45)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p28,iv_measure_req_cnt_p28};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd46)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p29,iv_measure_req_cnt_p29};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd47)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p30,iv_measure_req_cnt_p30};
                ov_raddr      <= iv_addr;
            end	
            else if(iv_addr == 19'd48)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_measure_resp_cnt_p31,iv_measure_req_cnt_p31};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd49)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {31'b0,o_sync_step_mode};
                ov_raddr      <= iv_addr;
            end
            else if(iv_addr == 19'd50)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p0_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd51)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd52)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd53)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p0_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd54)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd55)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd56)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p0_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd57)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd58)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd59)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p0_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd60)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd61)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p0_t4[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd62)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p1_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd63)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd64)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd65)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p1_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd66)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd67)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd68)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p1_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd69)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd70)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd71)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p1_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd72)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd73)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p1_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd74)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p2_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd75)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd76)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd77)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p2_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd78)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd79)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd80)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p2_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd81)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd82)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd83)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p2_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd84)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd85)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p2_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd86)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p3_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd87)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd88)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd89)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p3_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd90)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd91)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd92)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p3_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd93)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd94)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd95)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p3_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd96)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd97)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p3_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              else if(iv_addr == 19'd98)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p4_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd99)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd100)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd101)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p4_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd102)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd103)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd104)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p4_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd105)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd106)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd107)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p4_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd108)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd109)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p4_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              else if(iv_addr == 19'd110)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p5_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd111)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd112)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd113)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p5_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd114)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd115)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd116)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p5_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd117)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd118)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd119)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p5_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd120)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd121)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p5_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              else if(iv_addr == 19'd122)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p6_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd123)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd124)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd125)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p6_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd126)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd127)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd128)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p6_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd129)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd130)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd131)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p6_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd132)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd133)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p6_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              else if(iv_addr == 19'd134)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p7_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd135)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd136)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd137)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p7_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd138)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd139)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd140)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p7_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd141)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd142)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd143)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p7_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd144)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd145)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p7_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              else if(iv_addr == 19'd146)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p8_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd147)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd148)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd149)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p8_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd150)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd151)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd152)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p8_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd153)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd154)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd155)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p8_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd156)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd157)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p8_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd158)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p9_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd159)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd160)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd161)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p9_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd162)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd163)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd164)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p9_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd165)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd166)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd167)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p9_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd168)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd169)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p9_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd170)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p10_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd171)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd172)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd173)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p10_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd174)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd175)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd176)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p10_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd177)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd178)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd179)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p10_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd180)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd181)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p10_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd182)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p11_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd183)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd184)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd185)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p11_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd186)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd187)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd188)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p11_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd189)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd190)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd191)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p11_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd192)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd193)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p11_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd194)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p12_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd195)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd196)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd197)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p12_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd198)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd199)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd200)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p12_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd201)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd202)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd203)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p12_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd204)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd205)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p12_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd206)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p13_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd207)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd208)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd209)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p13_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd210)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd211)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd212)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p13_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd213)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd214)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd215)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p13_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd216)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd217)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p13_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd218)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p14_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd219)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd220)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd221)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p14_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd222)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd223)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd224)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p14_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd225)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd226)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd227)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p14_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd228)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd229)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p14_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd230)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p15_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd231)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd232)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd233)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p15_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd234)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd235)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd236)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p15_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd237)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd238)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd239)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p15_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd240)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd241)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p15_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd242)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p16_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd243)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd244)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd245)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p16_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd246)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd247)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd248)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p16_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd249)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd250)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd251)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p16_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd252)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd253)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p16_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd254)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p17_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd255)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd256)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd257)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p17_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd258)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd259)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd260)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p17_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd261)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd262)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd263)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p17_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd264)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd265)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p17_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd266)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p18_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd267)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd268)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd269)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p18_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd270)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd271)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd272)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p18_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd273)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd274)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd275)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p18_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd276)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd277)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p18_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd278)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p19_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd279)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd280)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd281)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p19_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd282)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd283)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd284)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p19_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd285)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd286)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd287)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p19_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd288)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd289)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p19_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd290)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p20_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd291)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd292)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd293)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p20_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd294)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd295)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd296)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p20_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd297)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd298)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd299)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p20_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd300)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd301)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p20_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd302)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p21_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd303)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd304)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd305)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p21_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd306)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd307)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd308)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p21_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd309)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd310)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd311)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p21_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd312)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd313)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p21_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd314)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p22_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd315)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd316)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd317)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p22_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd318)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd319)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd320)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p22_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd321)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd322)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd323)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p22_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd324)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd325)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p22_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd326)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p23_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd327)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd328)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd339)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p23_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd330)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd331)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd332)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p23_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd333)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd334)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd335)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p23_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd336)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd337)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p23_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd338)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p24_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd339)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd340)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd341)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p24_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd342)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd343)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd344)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p24_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd345)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd346)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd347)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p24_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd348)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd349)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p24_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd350)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p25_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd351)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd352)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd353)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p25_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd354)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd355)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd356)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p25_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd357)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd358)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd359)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p25_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd360)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd361)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p25_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd362)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p26_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd363)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd364)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd365)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p26_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd366)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd367)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd368)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p26_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd369)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd370)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd371)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p26_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd372)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd373)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p26_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd374)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p27_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd375)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd376)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd377)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p27_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd378)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd379)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd380)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p27_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd381)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd382)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd383)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p27_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd384)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd385)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p27_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd386)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p28_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd387)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd388)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd389)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p28_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd390)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd391)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd392)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p28_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd393)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd394)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd395)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p28_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd396)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd397)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p28_t4[31:0]};
                ov_raddr      <= iv_addr;
            end              
            else if(iv_addr == 19'd398)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p29_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd399)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd400)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd401)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p29_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd402)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd403)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd404)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p29_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd405)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd406)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd407)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p29_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd408)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd409)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p29_t4[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd410)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p30_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd411)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd412)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd413)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p30_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd414)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd415)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd416)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p30_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd417)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd418)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd419)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p30_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd420)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd421)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p30_t4[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd422)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p31_t1[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd423)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t1[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd424)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t1[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd425)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p31_t2[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd426)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t2[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd427)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t2[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd428)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p31_t3[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd429)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t3[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd430)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t3[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd431)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_p31_t4[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd432)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t4[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd433)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_p31_t4[31:0]};
                ov_raddr      <= iv_addr;
            end  
            else if(iv_addr == 19'd434)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {31'b0,i_sync_ok};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd435)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {3'b0,iv_offset,iv_offset_abnormal_cnt};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd436)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_csrateoffset_previousnode};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd437)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_gm_timestamps[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd438)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_gm_timestamps[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd439)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_gm_timestamps[31:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd440)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_correctfield_time[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd441)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_correctfield_time[31:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd442)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_mac_time[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd443)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_mac_time[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd444)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_mac_time[31:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd445)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_tsc_time[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd446)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_tsc_time[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd447)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_tsc_time[31:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd448)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {20'b0,iv_sync_link_delay[11:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd449)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_corrent_sync_clk[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd450)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_corrent_sync_clk[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd451)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_corrent_sync_clk[31:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd452)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {16'b0,iv_clk_set_time[79:64]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd453)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_clk_set_time[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd454)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_clk_set_time[31:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd455)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_cyclestart_sequenceid[31:0]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd456)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_tick_length[63:32]};
                ov_raddr      <= iv_addr;
            end 
            else if(iv_addr == 19'd457)begin
                o_wr          <= 1'b1;
                ov_rdata      <= {iv_tick_length[31:0]};
                ov_raddr      <= iv_addr;
            end         
            else begin
                o_wr          <= 1'b1;
                ov_rdata      <= 32'hFFFFFFFF;
                ov_raddr      <= iv_addr;
            end            
        end
        else begin
            o_frequency_cor_wr          <= 1'b0;  
                
            o_wr                        <= 1'b0;
            ov_rdata                    <= 32'b0;
            ov_raddr                    <= 19'b0;        
        end
    end
end    
endmodule
    